import { _decorator, Component, Node, tween, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('RankPage')
export class RankPage extends Component {
    start() {

    }

    update(deltaTime: number) {

    }

    showPage() {
        tween(this.node).to(0.5, { position: new Vec3(0, 0, 0) }, { easing: 'backIn' }).start();
    }

    hidePage() {
        tween(this.node).to(0.5, { position: new Vec3(1080, 0, 0) }, { easing: 'backOut' }).start();
    }
}


